var express = require('express');
var sutdentRouter = express.Router();
const student = require('../dao/student_dao')


// 获取我的通知
sutdentRouter.get('/getNotice', (req, res) => {
  student.getNotice(req, res)
})

// 获取我的通知已读列表
sutdentRouter.get('/getNoticeRead', (req, res) => {
  student.getNoticeRead(req, res)
})


// 已读转未读
sutdentRouter.get('/goUnRead', (req, res) => {
  student.goUnRead(req, res)
})

// 未读转已读
sutdentRouter.get('/goReaded', (req, res) => {
  student.goReaded(req, res)
})

/* -----------------填表部分------------------------ */

// 提交健康申报表
sutdentRouter.post('/setHeath', (req, res) => {
  student.setHeath(req, res)
})

// 分页获取当天填报表的与总数量
sutdentRouter.get('/getHealthNowDayPage', (req, res) => {
  student.getHealthNowDayPage(req, res)
})

// 获取当天某用户报表
sutdentRouter.get('/getHealthNowDayById', (req, res) => {
  student.getHealthNowDayById(req, res)
})

// 获取当天所有报表
sutdentRouter.get('/getHealthNowDay', (req, res) => {
  student.getHealthNowDay(req, res)
})

// 获取当月报表
sutdentRouter.get('/getHealthNowMonth', (req, res) => {
  student.getHealthNowMonth(req, res)
})

// 获取所有报表
sutdentRouter.get('/getAllHealth', (req, res) => {
  student.getAllHealth(req, res)
})

// 提交请假
sutdentRouter.post('/setLeave', (req, res) => {
  student.setLeave(req, res)
})


module.exports = sutdentRouter;